package com.qianfeng.app;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;
@EnableAutoConfiguration
@ComponentScan(basePackages= {"com.qianfeng.controller","com.qianfeng.service"})
@EnableAsync //开启异步调用（多线程）（使用异步调用时还要在启动类中使用@EnableAsync注解）
public class SpringApp {
	
	public static void main(String[] args) {
		SpringApplication.run(SpringApp.class, args);
	}
}





















